package com.zsl.blog.api.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zsl.blog.api.dao.dos.Archives;
import com.zsl.blog.api.dao.pojo.Article;
import com.zsl.blog.api.vo.ArticleVo;
import com.zsl.blog.api.vo.Result;
import com.zsl.blog.api.vo.params.PageParams;
import org.springframework.stereotype.Service;

import java.util.List;


public interface ArticleService {
    Result listArticle(PageParams pageParams);

    List<ArticleVo> findHotsArticles(Integer limit);

    List<ArticleVo> findNewArticles(int limit);

    List<Archives> listArchives();

    ArticleVo findArticleById(Long id);
}
